package com.itxx.keyCase;

import java.util.Scanner;

public class ScoreExceptionTest {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入成绩:");
        int score = sc.nextInt();
        if (score > 100 | score < 0) {
            throw new ScoreException("你输入的成绩有误,请重新输入");
        }
        System.out.println(score);
    }
}
